<?php

/**
 * AtributosAdicionalesBeca form base class.
 *
 * @method AtributosAdicionalesBeca getObject() Returns the current form's model object
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseAtributosAdicionalesBecaForm extends BaseFormDoctrine
{
  public function setup()
  {
      $this->setWidgets(array(
      'beca_id'        => new sfWidgetFormInputText(array('label'=>'Codigo beca'), array('readonly'=>'true')),
      'Nombre_de_la_Beca' => new sfWidgetFormTextarea(array(), array('rows' => '3', 'cols' => '95', 'readonly'=>'true')),
      'atributo_id'    => new sfWidgetFormTextarea(array('label'=>'Item'), array('enabled'=>'false', 'rows' => '1', 'cols' => '95')),      
      'atributo_valor' => new sfWidgetFormTextarea(array('label'=>'Informacion del Item'), array('rows' => '8', 'cols' => '95', 'maxlength' => '1000')),
    ));    

    $this->setValidators(array(
      'beca_id'        => new sfValidatorInteger(array('required' => true)),
      'Nombre_de_la_Beca' => new sfValidatorString(array('required' => false)),      
      'atributo_id'    => new sfValidatorString(array('required' => true)),      
      'atributo_valor' => new sfValidatorString(array('required' => false)),
    ));    

    $this->widgetSchema->setNameFormat('atributos_adicionales_beca[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'AtributosAdicionalesBeca';
  }

}
